IssueCreateMetadata.fromJson constructor

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

Implementation

factory IssueCreateMetadata.fromJson(Map<String, Object?> json) {
  return IssueCreateMetadata(
    expand: json[r'expand'] as String?,
    projects: (json[r'projects'] as List<Object?>?)
            ?.map((i) => ProjectIssueCreateMetadata.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
  );
}