Warning.fromJson constructor

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

Implementation

factory Warning.fromJson(Map<String, dynamic> json) {
  return Warning(
    errorCode: json['ErrorCode'] as String?,
    pages: (json['Pages'] as List?)
        ?.whereNotNull()
        .map((e) => e as int)
        .toList(),
  );
}