decode static method
Implementation
static SharedMedia decode(Object message) {
final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
return SharedMedia(
attachments: (pigeonMap['attachments'] as List<Object?>?)
?.map((e) => SharedAttachment.decode(e as Map<Object?, Object?>))
.cast<SharedAttachment?>()
.toList(),
recipientIdentifiers: (pigeonMap['recipientIdentifiers'] as List<Object?>?)?.cast<String?>(),
conversationIdentifier: pigeonMap['conversationIdentifier'] as String?,
content: pigeonMap['content'] as String?,
speakableGroupName: pigeonMap['speakableGroupName'] as String?,
serviceName: pigeonMap['serviceName'] as String?,
senderIdentifier: pigeonMap['senderIdentifier'] as String?,
imageFilePath: pigeonMap['imageFilePath'] as String?,
);
}