ImageOptions.fromJson constructor

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

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?,
);