Message.fromJson constructor

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

Implementation

factory Message.fromJson(Map<String, Object?> json) {
  return Message(
    translation: json[r'translation'] as String?,
    args: (json[r'args'] as List<Object?>?)?.map((i) => i).toList() ?? [],
  );
}