Page.fromJson constructor

Page.fromJson(
  1. Map json_
)

Implementation

Page.fromJson(core.Map json_)
    : this(
        layoutProperties: json_.containsKey('layoutProperties')
            ? LayoutProperties.fromJson(json_['layoutProperties']
                as core.Map<core.String, core.dynamic>)
            : null,
        masterProperties: json_.containsKey('masterProperties')
            ? MasterProperties.fromJson(json_['masterProperties']
                as core.Map<core.String, core.dynamic>)
            : null,
        notesProperties: json_.containsKey('notesProperties')
            ? NotesProperties.fromJson(json_['notesProperties']
                as core.Map<core.String, core.dynamic>)
            : null,
        objectId: json_.containsKey('objectId')
            ? json_['objectId'] as core.String
            : null,
        pageElements: json_.containsKey('pageElements')
            ? (json_['pageElements'] as core.List)
                .map((value) => PageElement.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        pageProperties: json_.containsKey('pageProperties')
            ? PageProperties.fromJson(json_['pageProperties']
                as core.Map<core.String, core.dynamic>)
            : null,
        pageType: json_.containsKey('pageType')
            ? json_['pageType'] as core.String
            : null,
        revisionId: json_.containsKey('revisionId')
            ? json_['revisionId'] as core.String
            : null,
        slideProperties: json_.containsKey('slideProperties')
            ? SlideProperties.fromJson(json_['slideProperties']
                as core.Map<core.String, core.dynamic>)
            : null,
      );