Space constructor

Space(
  1. SpaceResponse response,
  2. dynamic client
)

Creates a Space from a protobuf response.

Implementation

Space(pb.SpaceResponse response, dynamic client) : super(client) {
  path = response.path;
  name = response.name;
  type = response.type;
  createdAt = response.createdAt.isEmpty ? null : response.createdAt;
  author = response.author;
  metadata = Map<String, String>.from(response.metadata);
  username = response.username;
}