GetPushRulesGlobalResponse.fromJson constructor

GetPushRulesGlobalResponse.fromJson(
  1. Map<String, Object?> json
)

Implementation

GetPushRulesGlobalResponse.fromJson(Map<String, Object?> json)
    : content = ((v) => v != null
          ? (v as List)
              .map((v) => PushRule.fromJson(v as Map<String, Object?>))
              .toList()
          : null)(json['content']),
      override = ((v) => v != null
          ? (v as List)
              .map((v) => PushRule.fromJson(v as Map<String, Object?>))
              .toList()
          : null)(json['override']),
      room = ((v) => v != null
          ? (v as List)
              .map((v) => PushRule.fromJson(v as Map<String, Object?>))
              .toList()
          : null)(json['room']),
      sender = ((v) => v != null
          ? (v as List)
              .map((v) => PushRule.fromJson(v as Map<String, Object?>))
              .toList()
          : null)(json['sender']),
      underride = ((v) => v != null
          ? (v as List)
              .map((v) => PushRule.fromJson(v as Map<String, Object?>))
              .toList()
          : null)(json['underride']);