ChatAdministrators.fromJson constructor

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

Parse from a json

Implementation

factory ChatAdministrators.fromJson(Map<String, dynamic> json) => ChatAdministrators(
  administrators: List<ChatAdministrator>.from((json['administrators'] ?? []).map((item) => ChatAdministrator.fromJson(item)).toList()),
  extra: json['@extra'],
  clientId: json['@client_id'],
);