Entry.fromJson constructor

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

Implementation

factory Entry.fromJson(Map<String, Object?> json) {
  return Entry(
    issueId: (json[r'issueId'] as num?)?.toInt(),
    issueKey: json[r'issueKey'] as String?,
    status: (json[r'status'] as num?)?.toInt(),
    errors: (json[r'errors'] as List<Object?>?)
            ?.map((i) => i as String? ?? '')
            .toList() ??
        [],
  );
}