CourseMaterialSet.fromJson constructor

CourseMaterialSet.fromJson(
  1. Map json_
)

Implementation

CourseMaterialSet.fromJson(core.Map json_)
    : this(
        materials: json_.containsKey('materials')
            ? (json_['materials'] as core.List)
                .map((value) => CourseMaterial.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
      );