ListActiveViolationsResponse.fromJson constructor

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

Implementation

factory ListActiveViolationsResponse.fromJson(Map<String, dynamic> json) {
  return ListActiveViolationsResponse(
    activeViolations: (json['activeViolations'] as List?)
        ?.whereNotNull()
        .map((e) => ActiveViolation.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['nextToken'] as String?,
  );
}