fromJson static method

CallServerTypeTelegramReflector? fromJson(
  1. Map<String, dynamic>? json
)
override

Implementation

static CallServerTypeTelegramReflector? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return CallServerTypeTelegramReflector(
    peerTag: (json['peer_tag'] as String?) ?? '',
    isTcp: (json['is_tcp'] as bool?) ?? false,
  );
}