Image.fromJson constructor

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

Implementation

factory Image.fromJson(Map<String, dynamic> json) {
  return Image(
    idiom: json['idiom'],
    filename: json['filename'],
    scale: json['scale'],
    appearances: json['appearances'] != null
        ? List<Map<String, dynamic>>.from(
            (json['appearances'] as List).map(
              (e) => Map<String, dynamic>.from(e as Map),
            ),
          )
        : null,
  );
}