Document.fromJson constructor

Document.fromJson(
  1. Map json_
)

Implementation

Document.fromJson(core.Map json_)
    : this(
        content: json_.containsKey('content')
            ? json_['content'] as core.String
            : null,
        gcsContentUri: json_.containsKey('gcsContentUri')
            ? json_['gcsContentUri'] as core.String
            : null,
        language: json_.containsKey('language')
            ? json_['language'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );