Backgrounds.fromJson constructor

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

Parse from a json

Implementation

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