ClaimKeysResponse.fromJson constructor

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

Implementation

ClaimKeysResponse.fromJson(Map<String, Object?> json)
    : failures = ((v) => v != null
          ? (v as Map<String, Object?>)
              .map((k, v) => MapEntry(k, v as Map<String, Object?>))
          : null)(json['failures']),
      oneTimeKeys = (json['one_time_keys'] as Map<String, Object?>).map(
          (k, v) => MapEntry(
              k,
              (v as Map<String, Object?>)
                  .map((k, v) => MapEntry(k, v as Map<String, Object?>))));