ListenRequest.fromJson constructor

ListenRequest.fromJson(
  1. Map _json
)

Implementation

ListenRequest.fromJson(core.Map _json)
    : this(
        addTarget: _json.containsKey('addTarget')
            ? Target.fromJson(
                _json['addTarget'] as core.Map<core.String, core.dynamic>)
            : null,
        labels: _json.containsKey('labels')
            ? (_json['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, item) => core.MapEntry(
                  key,
                  item as core.String,
                ),
              )
            : null,
        removeTarget: _json.containsKey('removeTarget')
            ? _json['removeTarget'] as core.int
            : null,
      );