SpaceEvent.fromJson constructor
SpaceEvent.fromJson(
- Map json_
Implementation
SpaceEvent.fromJson(core.Map json_)
: this(
eventTime: json_.containsKey('eventTime')
? json_['eventTime'] as core.String
: null,
eventType: json_.containsKey('eventType')
? json_['eventType'] as core.String
: null,
membershipBatchCreatedEventData:
json_.containsKey('membershipBatchCreatedEventData')
? MembershipBatchCreatedEventData.fromJson(
json_['membershipBatchCreatedEventData']
as core.Map<core.String, core.dynamic>)
: null,
membershipBatchDeletedEventData:
json_.containsKey('membershipBatchDeletedEventData')
? MembershipBatchDeletedEventData.fromJson(
json_['membershipBatchDeletedEventData']
as core.Map<core.String, core.dynamic>)
: null,
membershipBatchUpdatedEventData:
json_.containsKey('membershipBatchUpdatedEventData')
? MembershipBatchUpdatedEventData.fromJson(
json_['membershipBatchUpdatedEventData']
as core.Map<core.String, core.dynamic>)
: null,
membershipCreatedEventData:
json_.containsKey('membershipCreatedEventData')
? MembershipCreatedEventData.fromJson(
json_['membershipCreatedEventData']
as core.Map<core.String, core.dynamic>)
: null,
membershipDeletedEventData:
json_.containsKey('membershipDeletedEventData')
? MembershipDeletedEventData.fromJson(
json_['membershipDeletedEventData']
as core.Map<core.String, core.dynamic>)
: null,
membershipUpdatedEventData:
json_.containsKey('membershipUpdatedEventData')
? MembershipUpdatedEventData.fromJson(
json_['membershipUpdatedEventData']
as core.Map<core.String, core.dynamic>)
: null,
messageBatchCreatedEventData:
json_.containsKey('messageBatchCreatedEventData')
? MessageBatchCreatedEventData.fromJson(
json_['messageBatchCreatedEventData']
as core.Map<core.String, core.dynamic>)
: null,
messageBatchDeletedEventData:
json_.containsKey('messageBatchDeletedEventData')
? MessageBatchDeletedEventData.fromJson(
json_['messageBatchDeletedEventData']
as core.Map<core.String, core.dynamic>)
: null,
messageBatchUpdatedEventData:
json_.containsKey('messageBatchUpdatedEventData')
? MessageBatchUpdatedEventData.fromJson(
json_['messageBatchUpdatedEventData']
as core.Map<core.String, core.dynamic>)
: null,
messageCreatedEventData: json_.containsKey('messageCreatedEventData')
? MessageCreatedEventData.fromJson(
json_['messageCreatedEventData']
as core.Map<core.String, core.dynamic>)
: null,
messageDeletedEventData: json_.containsKey('messageDeletedEventData')
? MessageDeletedEventData.fromJson(
json_['messageDeletedEventData']
as core.Map<core.String, core.dynamic>)
: null,
messageUpdatedEventData: json_.containsKey('messageUpdatedEventData')
? MessageUpdatedEventData.fromJson(
json_['messageUpdatedEventData']
as core.Map<core.String, core.dynamic>)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
reactionBatchCreatedEventData:
json_.containsKey('reactionBatchCreatedEventData')
? ReactionBatchCreatedEventData.fromJson(
json_['reactionBatchCreatedEventData']
as core.Map<core.String, core.dynamic>)
: null,
reactionBatchDeletedEventData:
json_.containsKey('reactionBatchDeletedEventData')
? ReactionBatchDeletedEventData.fromJson(
json_['reactionBatchDeletedEventData']
as core.Map<core.String, core.dynamic>)
: null,
reactionCreatedEventData:
json_.containsKey('reactionCreatedEventData')
? ReactionCreatedEventData.fromJson(
json_['reactionCreatedEventData']
as core.Map<core.String, core.dynamic>)
: null,
reactionDeletedEventData:
json_.containsKey('reactionDeletedEventData')
? ReactionDeletedEventData.fromJson(
json_['reactionDeletedEventData']
as core.Map<core.String, core.dynamic>)
: null,
spaceBatchUpdatedEventData:
json_.containsKey('spaceBatchUpdatedEventData')
? SpaceBatchUpdatedEventData.fromJson(
json_['spaceBatchUpdatedEventData']
as core.Map<core.String, core.dynamic>)
: null,
spaceUpdatedEventData: json_.containsKey('spaceUpdatedEventData')
? SpaceUpdatedEventData.fromJson(json_['spaceUpdatedEventData']
as core.Map<core.String, core.dynamic>)
: null,
);