Message.fromJson constructor

Message.fromJson(
  1. Map<String, dynamic> json
)

Create a new instance from JSON.

Implementation

factory Message.fromJson(Map<String, dynamic> json) => _$MessageFromJson(
      Serializer.moveToExtraDataFromRoot(json, topLevelFields),
    ).copyWith(
      status: MessageSendingStatus.sent,
    );