KeyValue.fromJson constructor

KeyValue.fromJson(
  1. Map json_
)

Implementation

KeyValue.fromJson(core.Map json_)
    : this(
        bottomLabel: json_.containsKey('bottomLabel')
            ? json_['bottomLabel'] as core.String
            : null,
        button: json_.containsKey('button')
            ? Button.fromJson(
                json_['button'] as core.Map<core.String, core.dynamic>)
            : null,
        content: json_.containsKey('content')
            ? json_['content'] as core.String
            : null,
        contentMultiline: json_.containsKey('contentMultiline')
            ? json_['contentMultiline'] as core.bool
            : null,
        icon: json_.containsKey('icon') ? json_['icon'] as core.String : null,
        iconUrl: json_.containsKey('iconUrl')
            ? json_['iconUrl'] as core.String
            : null,
        onClick: json_.containsKey('onClick')
            ? OnClick.fromJson(
                json_['onClick'] as core.Map<core.String, core.dynamic>)
            : null,
        topLabel: json_.containsKey('topLabel')
            ? json_['topLabel'] as core.String
            : null,
      );