fromJson static method

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

Implementation

static Backgrounds? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return Backgrounds(
    backgrounds: List<Background>.from(
        ((json['backgrounds'] as List<dynamic>?) ?? <dynamic>[])
            .map((item) => Background.fromJson(item as Map<String, dynamic>?))
            .toList()),
  );
}