ProtectionLimits.fromJson constructor

ProtectionLimits.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ProtectionLimits.fromJson(Map<String, dynamic> json) {
  return ProtectionLimits(
    protectedResourceTypeLimits: (json['ProtectedResourceTypeLimits'] as List)
        .whereNotNull()
        .map((e) => Limit.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}