IssueFieldOption.fromJson constructor

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

Implementation

factory IssueFieldOption.fromJson(Map<String, Object?> json) {
  return IssueFieldOption(
    config: json[r'config'] != null
        ? IssueFieldOptionConfiguration.fromJson(
            json[r'config']! as Map<String, Object?>)
        : null,
    id: (json[r'id'] as num?)?.toInt() ?? 0,
    properties: json[r'properties'] as Map<String, Object?>?,
    value: json[r'value'] as String? ?? '',
  );
}