MessagePassportDataSent.fromJson constructor

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

Parse from a json

Implementation

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