TextButton.fromJson constructor

TextButton.fromJson(
  1. Map json_
)

Implementation

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