Mutation$sendMessageToTarget$sendMessageToTarget.fromJson constructor
Mutation$sendMessageToTarget$sendMessageToTarget.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Mutation$sendMessageToTarget$sendMessageToTarget.fromJson(
Map<String, dynamic> json) {
final l$id = json['id'];
final l$gif = json['gif'];
final l$text = json['text'];
final l$sticker = json['sticker'];
final l$createdAt = json['createdAt'];
final l$updatedAt = json['updatedAt'];
final l$sender = json['sender'];
final l$custom = json['custom'];
final l$location = json['location'];
final l$seenBy = json['seenBy'];
final l$media = json['media'];
final l$messageGroup = json['messageGroup'];
return Mutation$sendMessageToTarget$sendMessageToTarget(
id: (l$id as String),
gif: (l$gif as String?),
text: (l$text as String?),
sticker: (l$sticker as String?),
createdAt: dateTimeFromJson(l$createdAt),
updatedAt: dateTimeFromJson(l$updatedAt),
sender: Mutation$sendMessageToTarget$sendMessageToTarget$sender.fromJson(
(l$sender as Map<String, dynamic>)),
custom: l$custom == null
? null
: Mutation$sendMessageToTarget$sendMessageToTarget$custom.fromJson(
(l$custom as Map<String, dynamic>)),
location: l$location == null
? null
: Mutation$sendMessageToTarget$sendMessageToTarget$location.fromJson(
(l$location as Map<String, dynamic>)),
seenBy: (l$seenBy as List<dynamic>?)
?.map((e) =>
Mutation$sendMessageToTarget$sendMessageToTarget$seenBy.fromJson(
(e as Map<String, dynamic>)))
.toList(),
media: l$media == null
? null
: Mutation$sendMessageToTarget$sendMessageToTarget$media.fromJson(
(l$media as Map<String, dynamic>)),
messageGroup:
Mutation$sendMessageToTarget$sendMessageToTarget$messageGroup
.fromJson((l$messageGroup as Map<String, dynamic>)),
);
}