CourseMaterial.fromJson constructor

CourseMaterial.fromJson(
  1. Map json_
)

Implementation

CourseMaterial.fromJson(core.Map json_)
    : this(
        driveFile: json_.containsKey('driveFile')
            ? DriveFile.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,
      );