fromJson static method
Implementation
static ReceivedGifts? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return ReceivedGifts(
totalCount: (json['total_count'] as int?) ?? 0,
gifts: List<ReceivedGift>.from(((json['gifts'] as List<dynamic>?) ??
<dynamic>[])
.map((item) => ReceivedGift.fromJson(item as Map<String, dynamic>?))
.toList()),
areNotificationsEnabled:
(json['are_notifications_enabled'] as bool?) ?? false,
nextOffset: (json['next_offset'] as String?) ?? '',
);
}