TdError.fromJson constructor

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

Parse from a json

Implementation

factory TdError.fromJson(Map<String, dynamic> json) => TdError(
  code: json['code'],
  message: json['message'],
  extra: json['@extra'],
  clientId: json['@client_id'],
);