ImageOptions.fromJson constructor
Implementation
factory ImageOptions.fromJson(Map<String, dynamic> json) => ImageOptions(
file: json['file'],
filename: json['filename'] as String,
mediaType: json['mediaType'] as String?,
type: json['type'] != null
? ImageOptionType.values.byName(json['type'] as String)
: null,
url: json['url'] as String?,
);