CoverPhoto.fromJson constructor

CoverPhoto.fromJson(
  1. Map json_
)

Implementation

CoverPhoto.fromJson(core.Map json_)
    : this(
        default_: json_.containsKey('default')
            ? json_['default'] as core.bool
            : null,
        metadata: json_.containsKey('metadata')
            ? FieldMetadata.fromJson(
                json_['metadata'] as core.Map<core.String, core.dynamic>)
            : null,
        url: json_.containsKey('url') ? json_['url'] as core.String : null,
      );