QuotedMessageSnapshot.fromJson constructor

QuotedMessageSnapshot.fromJson(
  1. Map json_
)

Implementation

QuotedMessageSnapshot.fromJson(core.Map json_)
  : this(
      annotations: (json_['annotations'] as core.List?)
          ?.map(
            (value) => Annotation.fromJson(
              value as core.Map<core.String, core.dynamic>,
            ),
          )
          .toList(),
      attachments: (json_['attachments'] as core.List?)
          ?.map(
            (value) => Attachment.fromJson(
              value as core.Map<core.String, core.dynamic>,
            ),
          )
          .toList(),
      formattedText: json_['formattedText'] as core.String?,
      sender: json_['sender'] as core.String?,
      text: json_['text'] as core.String?,
    );