Updates.fromJson constructor

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

Parse from a json

Implementation

factory Updates.fromJson(Map<String, dynamic> json) => Updates(
  updates: List<Update>.from((json['updates'] ?? []).map((item) => Update.fromJson(item)).toList()),
  extra: json['@extra'],
  clientId: json['@client_id'],
);