ErrorDetail.fromJson constructor

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

Implementation

factory ErrorDetail.fromJson(Map<String, dynamic> json) {
  return ErrorDetail(
    errorCode: (json['errorCode'] as String?)?.toErrorCode(),
    errorMessage: json['errorMessage'] as String?,
    resourceIds: (json['resourceIds'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}