Content.fromJson constructor

Content.fromJson(
  1. Map json_
)

Implementation

Content.fromJson(core.Map json_)
    : this(
        files: json_.containsKey('files')
            ? (json_['files'] as core.List)
                .map((value) => File.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        scriptId: json_.containsKey('scriptId')
            ? json_['scriptId'] as core.String
            : null,
      );