ExtraMaterial.fromJson constructor

ExtraMaterial.fromJson(
  1. Map json_
)

Implementation

ExtraMaterial.fromJson(core.Map json_)
    : this(
        link: json_.containsKey('link')
            ? TextLink.fromJson(
                json_['link'] as core.Map<core.String, core.dynamic>)
            : null,
        video: json_.containsKey('video')
            ? VideoLink.fromJson(
                json_['video'] as core.Map<core.String, core.dynamic>)
            : null,
      );