JsonValueObject.fromJson constructor

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

Parses a JsonValueObject from TDLib JSON.

Implementation

factory JsonValueObject.fromJson(Map<String, dynamic> json) =>
    JsonValueObject(
      members: _readList<JsonObjectMember>(
          json['members'], (e) => _readObject(e, JsonObjectMember.fromJson)),
      extra: json['@extra'],
      clientId: _readClientId(json['@client_id']),
    );