Volumeannotation.fromJson constructor

Volumeannotation.fromJson(
  1. Map json_
)

Implementation

Volumeannotation.fromJson(core.Map json_)
    : this(
        annotationDataId: json_.containsKey('annotationDataId')
            ? json_['annotationDataId'] as core.String
            : null,
        annotationDataLink: json_.containsKey('annotationDataLink')
            ? json_['annotationDataLink'] as core.String
            : null,
        annotationType: json_.containsKey('annotationType')
            ? json_['annotationType'] as core.String
            : null,
        contentRanges: json_.containsKey('contentRanges')
            ? VolumeannotationContentRanges.fromJson(
                json_['contentRanges'] as core.Map<core.String, core.dynamic>)
            : null,
        data: json_.containsKey('data') ? json_['data'] as core.String : null,
        deleted: json_.containsKey('deleted')
            ? json_['deleted'] as core.bool
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        layerId: json_.containsKey('layerId')
            ? json_['layerId'] as core.String
            : null,
        pageIds: json_.containsKey('pageIds')
            ? (json_['pageIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        selectedText: json_.containsKey('selectedText')
            ? json_['selectedText'] as core.String
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        updated: json_.containsKey('updated')
            ? json_['updated'] as core.String
            : null,
        volumeId: json_.containsKey('volumeId')
            ? json_['volumeId'] as core.String
            : null,
      );