fromJson static method

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

Implementation

static MessageEntity fromJson(Map<String, dynamic> json) {
  return MessageEntity(
    type: json['type']!,
    offset: json['offset']!,
    length: json['length']!,
    url: json['url'],
    user: callIfNotNull(User.fromJson, json['user']),
    language: json['language'],
  );
}