Space constructor
- SpaceResponse response,
- 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;
}