Error.fromJson constructor

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

Implementation

factory Error.fromJson(Map<String, Object?> json) {
  return Error(
    count: (json[r'count'] as num?)?.toInt(),
    issueIdsOrKeys: (json[r'issueIdsOrKeys'] as List<Object?>?)
            ?.map((i) => i as String? ?? '')
            .toList() ??
        [],
    message: json[r'message'] as String?,
  );
}