MessageSponsor.fromJson constructor
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'],
);