Space.fromJson constructor
Space.fromJson(
- Map json_
Implementation
Space.fromJson(core.Map json_)
: this(
adminInstalled: json_.containsKey('adminInstalled')
? json_['adminInstalled'] as core.bool
: null,
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
displayName: json_.containsKey('displayName')
? json_['displayName'] as core.String
: null,
externalUserAllowed: json_.containsKey('externalUserAllowed')
? json_['externalUserAllowed'] as core.bool
: null,
importMode: json_.containsKey('importMode')
? json_['importMode'] as core.bool
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
singleUserBotDm: json_.containsKey('singleUserBotDm')
? json_['singleUserBotDm'] as core.bool
: null,
spaceDetails: json_.containsKey('spaceDetails')
? SpaceDetails.fromJson(
json_['spaceDetails'] as core.Map<core.String, core.dynamic>)
: null,
spaceHistoryState: json_.containsKey('spaceHistoryState')
? json_['spaceHistoryState'] as core.String
: null,
spaceThreadingState: json_.containsKey('spaceThreadingState')
? json_['spaceThreadingState'] as core.String
: null,
spaceType: json_.containsKey('spaceType')
? json_['spaceType'] as core.String
: null,
threaded: json_.containsKey('threaded')
? json_['threaded'] as core.bool
: null,
type: json_.containsKey('type') ? json_['type'] as core.String : null,
);