MessageCalendar.fromJson constructor

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

Parse from a json

Implementation

factory MessageCalendar.fromJson(Map<String, dynamic> json) =>
    MessageCalendar(
      totalCount: json['total_count'],
      days: List<MessageCalendarDay>.from((json['days'] ?? [])
          .map((item) => MessageCalendarDay.fromJson(item))
          .toList()),
      extra: json['@extra'],
      clientId: json['@client_id'],
    );