MessagePassportDataSent.fromJson constructor

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

Parse from a json

Implementation

factory MessagePassportDataSent.fromJson(Map<String, dynamic> json) => MessagePassportDataSent(
  types: List<PassportElementType>.from((json['types'] ?? []).map((item) => PassportElementType.fromJson(item)).toList()),
);