Material.fromJson constructor

Material.fromJson(
  1. Map json_
)

Implementation

Material.fromJson(core.Map json_)
    : this(
        driveFile: json_.containsKey('driveFile')
            ? SharedDriveFile.fromJson(
                json_['driveFile'] as core.Map<core.String, core.dynamic>)
            : null,
        form: json_.containsKey('form')
            ? Form.fromJson(
                json_['form'] as core.Map<core.String, core.dynamic>)
            : null,
        link: json_.containsKey('link')
            ? Link.fromJson(
                json_['link'] as core.Map<core.String, core.dynamic>)
            : null,
        youtubeVideo: json_.containsKey('youtubeVideo')
            ? YouTubeVideo.fromJson(
                json_['youtubeVideo'] as core.Map<core.String, core.dynamic>)
            : null,
      );