NestedResponse.fromJson constructor

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

Implementation

factory NestedResponse.fromJson(Map<String, Object?> json) {
  return NestedResponse(
    errorCollection: json[r'errorCollection'] != null
        ? ErrorCollection.fromJson(
            json[r'errorCollection']! as Map<String, Object?>)
        : null,
    status: (json[r'status'] as num?)?.toInt(),
    warningCollection: json[r'warningCollection'] != null
        ? WarningCollection.fromJson(
            json[r'warningCollection']! as Map<String, Object?>)
        : null,
  );
}