IssueBean.fromJson constructor

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

Implementation

factory IssueBean.fromJson(Map<String, Object?> json) {
  return IssueBean(
    changelog: json[r'changelog'] != null
        ? PageOfChangelogs.fromJson(
            json[r'changelog']! as Map<String, Object?>)
        : null,
    editmeta: json[r'editmeta'] != null
        ? IssueUpdateMetadata.fromJson(
            json[r'editmeta']! as Map<String, Object?>)
        : null,
    expand: json[r'expand'] as String?,
    fields: json[r'fields'] as Map<String, Object?>?,
    fieldsToInclude: json[r'fieldsToInclude'] != null
        ? IncludedFields.fromJson(
            json[r'fieldsToInclude']! as Map<String, Object?>)
        : null,
    id: json[r'id'] as String?,
    key: json[r'key'] as String?,
    names: json[r'names'] as Map<String, Object?>?,
    operations: json[r'operations'] != null
        ? Operations.fromJson(json[r'operations']! as Map<String, Object?>)
        : null,
    properties: json[r'properties'] as Map<String, Object?>?,
    renderedFields: json[r'renderedFields'] as Map<String, Object?>?,
    schema: json[r'schema'] as Map<String, Object?>?,
    self: json[r'self'] as String?,
    transitions: (json[r'transitions'] as List<Object?>?)
            ?.map((i) => IssueTransition.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
    versionedRepresentations:
        json[r'versionedRepresentations'] as Map<String, Object?>?,
  );
}