GoogleAppsCardV1Card.fromJson constructor

GoogleAppsCardV1Card.fromJson(
  1. Map json_
)

Implementation

GoogleAppsCardV1Card.fromJson(core.Map json_)
    : this(
        cardActions: (json_['cardActions'] as core.List?)
            ?.map((value) => GoogleAppsCardV1CardAction.fromJson(
                value as core.Map<core.String, core.dynamic>))
            .toList(),
        displayStyle: json_['displayStyle'] as core.String?,
        fixedFooter: json_.containsKey('fixedFooter')
            ? GoogleAppsCardV1CardFixedFooter.fromJson(
                json_['fixedFooter'] as core.Map<core.String, core.dynamic>)
            : null,
        header: json_.containsKey('header')
            ? GoogleAppsCardV1CardHeader.fromJson(
                json_['header'] as core.Map<core.String, core.dynamic>)
            : null,
        name: json_['name'] as core.String?,
        peekCardHeader: json_.containsKey('peekCardHeader')
            ? GoogleAppsCardV1CardHeader.fromJson(json_['peekCardHeader']
                as core.Map<core.String, core.dynamic>)
            : null,
        sectionDividerStyle: json_['sectionDividerStyle'] as core.String?,
        sections: (json_['sections'] as core.List?)
            ?.map((value) => GoogleAppsCardV1Section.fromJson(
                value as core.Map<core.String, core.dynamic>))
            .toList(),
      );