RemoveOptionFromIssuesResult.fromJson constructor

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

Implementation

factory RemoveOptionFromIssuesResult.fromJson(Map<String, Object?> json) {
  return RemoveOptionFromIssuesResult(
    errors: json[r'errors'] != null
        ? SimpleErrorCollection.fromJson(
            json[r'errors']! as Map<String, Object?>)
        : null,
    modifiedIssues: (json[r'modifiedIssues'] as List<Object?>?)
            ?.map((i) => (i as num?)?.toInt() ?? 0)
            .toList() ??
        [],
    unmodifiedIssues: (json[r'unmodifiedIssues'] as List<Object?>?)
            ?.map((i) => (i as num?)?.toInt() ?? 0)
            .toList() ??
        [],
  );
}