ListenResponse.fromJson constructor

ListenResponse.fromJson(
  1. Map json_
)

Implementation

ListenResponse.fromJson(core.Map json_)
    : this(
        documentChange: json_.containsKey('documentChange')
            ? DocumentChange.fromJson(json_['documentChange']
                as core.Map<core.String, core.dynamic>)
            : null,
        documentDelete: json_.containsKey('documentDelete')
            ? DocumentDelete.fromJson(json_['documentDelete']
                as core.Map<core.String, core.dynamic>)
            : null,
        documentRemove: json_.containsKey('documentRemove')
            ? DocumentRemove.fromJson(json_['documentRemove']
                as core.Map<core.String, core.dynamic>)
            : null,
        filter: json_.containsKey('filter')
            ? ExistenceFilter.fromJson(
                json_['filter'] as core.Map<core.String, core.dynamic>)
            : null,
        targetChange: json_.containsKey('targetChange')
            ? TargetChange.fromJson(
                json_['targetChange'] as core.Map<core.String, core.dynamic>)
            : null,
      );