ItemContent.fromJson constructor

ItemContent.fromJson(
  1. Map json_
)

Implementation

ItemContent.fromJson(core.Map json_)
    : this(
        contentDataRef: json_.containsKey('contentDataRef')
            ? UploadItemRef.fromJson(json_['contentDataRef']
                as core.Map<core.String, core.dynamic>)
            : null,
        contentFormat: json_.containsKey('contentFormat')
            ? json_['contentFormat'] as core.String
            : null,
        hash: json_.containsKey('hash') ? json_['hash'] as core.String : null,
        inlineContent: json_.containsKey('inlineContent')
            ? json_['inlineContent'] as core.String
            : null,
      );