Image.fromJson constructor

Image.fromJson(
  1. Map _json
)

Implementation

Image.fromJson(core.Map _json)
    : this(
        error: _json.containsKey('error')
            ? Status.fromJson(
                _json['error'] as core.Map<core.String, core.dynamic>)
            : null,
        sourceImage: _json.containsKey('sourceImage')
            ? ToolOutputReference.fromJson(
                _json['sourceImage'] as core.Map<core.String, core.dynamic>)
            : null,
        stepId: _json.containsKey('stepId')
            ? _json['stepId'] as core.String
            : null,
        thumbnail: _json.containsKey('thumbnail')
            ? Thumbnail.fromJson(
                _json['thumbnail'] as core.Map<core.String, core.dynamic>)
            : null,
      );