ModelImageUri.fromJson constructor

ModelImageUri.fromJson(
  1. DynamicMap json
)

Convert from json map to ModelImageUri.

jsonのマップからModelImageUriに変換します。

Implementation

factory ModelImageUri.fromJson(DynamicMap json) {
  final uri = json.get(kUriKey, "");
  return ModelImageUri.fromServer(
    Uri.tryParse(uri),
  );
}