MessageSponsor.fromJson constructor

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

Parse from a json

Implementation

factory MessageSponsor.fromJson(Map<String, dynamic> json) => MessageSponsor(
      type: MessageSponsorType.fromJson(json['type']),
      photo: json['photo'] == null
          ? null
          : ChatPhotoInfo.fromJson(json['photo']),
      info: json['info'],
    );