ImageButton.fromJson constructor

ImageButton.fromJson(
  1. Map json_
)

Implementation

ImageButton.fromJson(core.Map json_)
    : this(
        icon: json_.containsKey('icon') ? json_['icon'] as core.String : null,
        iconUrl: json_.containsKey('iconUrl')
            ? json_['iconUrl'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        onClick: json_.containsKey('onClick')
            ? OnClick.fromJson(
                json_['onClick'] as core.Map<core.String, core.dynamic>)
            : null,
      );