fromJson static method

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

Implementation

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

  return TargetChatChosen(
    types: TargetChatTypes.fromJson(tdMapFromJson(json['types'])),
  );
}