Callback.fromJson constructor

Callback.fromJson(
  1. Map json_
)

Implementation

Callback.fromJson(core.Map json_)
    : this(
        availablePayloads: json_.containsKey('availablePayloads')
            ? (json_['availablePayloads'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        method: json_.containsKey('method')
            ? json_['method'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        waiters: json_.containsKey('waiters')
            ? json_['waiters'] as core.String
            : null,
      );