Meta.fromJson constructor

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

Implementation

factory Meta.fromJson(Map<String, dynamic> json) {
  return Meta(
    chatId: json['chatId'],
    initiator: Initiator.fromJson(json['initiator']),
    broadcast: json.containsKey('broadcast')
        ? Broadcast.fromJson(json['broadcast'])
        : null,
  );
}