// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'jira_data.dart';

// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************

DataJiraIssue _$DataJiraIssueFromJson(Map<String, dynamic> json) =>
    DataJiraIssue()
      ..id = json['id'] as String?
      ..self = json['self'] as String?
      ..key = json['key'] as String?
      ..fields = json['fields'] == null
          ? null
          : DataJiraIssueField.fromJson(json['fields'] as Map<String, dynamic>);

Map<String, dynamic> _$DataJiraIssueToJson(DataJiraIssue instance) =>
    <String, dynamic>{
      'id': instance.id,
      'self': instance.self,
      'key': instance.key,
      'fields': instance.fields,
    };

DataJiraIssueField _$DataJiraIssueFieldFromJson(Map<String, dynamic> json) =>
    DataJiraIssueField()
      ..summary = json['summary'] as String?
      ..priority = json['priority'] == null
          ? null
          : DataJiraIssuePriority.fromJson(
              json['priority'] as Map<String, dynamic>)
      ..status = json['status'] == null
          ? null
          : DataJiraIssueStatus.fromJson(json['status'] as Map<String, dynamic>)
      ..assignee = json['assignee'] == null
          ? null
          : DataJiraUser.fromJson(json['assignee'] as Map<String, dynamic>)
      ..creator = json['creator'] == null
          ? null
          : DataJiraUser.fromJson(json['creator'] as Map<String, dynamic>)
      ..reporter = json['reporter'] == null
          ? null
          : DataJiraUser.fromJson(json['reporter'] as Map<String, dynamic>)
      ..description = json['description'] == null
          ? null
          : DataJiraIssueDesc.fromJson(
              json['description'] as Map<String, dynamic>);

Map<String, dynamic> _$DataJiraIssueFieldToJson(DataJiraIssueField instance) =>
    <String, dynamic>{
      'summary': instance.summary,
      'priority': instance.priority,
      'status': instance.status,
      'assignee': instance.assignee,
      'creator': instance.creator,
      'reporter': instance.reporter,
      'description': instance.description,
    };

DataJiraIssuePriority _$DataJiraIssuePriorityFromJson(
        Map<String, dynamic> json) =>
    DataJiraIssuePriority()
      ..self = json['self'] as String?
      ..iconUrl = json['iconUrl'] as String?
      ..name = json['name'] as String?
      ..id = json['id'] as String?;

Map<String, dynamic> _$DataJiraIssuePriorityToJson(
        DataJiraIssuePriority instance) =>
    <String, dynamic>{
      'self': instance.self,
      'iconUrl': instance.iconUrl,
      'name': instance.name,
      'id': instance.id,
    };

DataJiraIssueStatus _$DataJiraIssueStatusFromJson(Map<String, dynamic> json) =>
    DataJiraIssueStatus()
      ..self = json['self'] as String?
      ..description = json['description'] as String?
      ..iconUrl = json['iconUrl'] as String?
      ..name = json['name'] as String?
      ..id = json['id'] as String?
      ..statusCategory = json['statusCategory'] == null
          ? null
          : DataJiraIssueStatusCategory.fromJson(
              json['statusCategory'] as Map<String, dynamic>);

Map<String, dynamic> _$DataJiraIssueStatusToJson(
        DataJiraIssueStatus instance) =>
    <String, dynamic>{
      'self': instance.self,
      'description': instance.description,
      'iconUrl': instance.iconUrl,
      'name': instance.name,
      'id': instance.id,
      'statusCategory': instance.statusCategory,
    };

DataJiraIssueStatusCategory _$DataJiraIssueStatusCategoryFromJson(
        Map<String, dynamic> json) =>
    DataJiraIssueStatusCategory()
      ..self = json['self'] as String?
      ..id = (json['id'] as num?)?.toInt()
      ..key = json['key'] as String?
      ..colorName = json['colorName'] as String?
      ..name = json['name'] as String?;

Map<String, dynamic> _$DataJiraIssueStatusCategoryToJson(
        DataJiraIssueStatusCategory instance) =>
    <String, dynamic>{
      'self': instance.self,
      'id': instance.id,
      'key': instance.key,
      'colorName': instance.colorName,
      'name': instance.name,
    };

DataJiraUser _$DataJiraUserFromJson(Map<String, dynamic> json) => DataJiraUser()
  ..self = json['self'] as String?
  ..accountId = json['accountId'] as String?
  ..emailAddress = json['emailAddress'] as String?
  ..avatarUrls = Map<String, String>.from(json['avatarUrls'] as Map)
  ..displayName = json['displayName'] as String?
  ..activate = json['activate'] as bool?
  ..timeZone = json['timeZone'] as String?
  ..accountType = json['accountType'] as String?;

Map<String, dynamic> _$DataJiraUserToJson(DataJiraUser instance) =>
    <String, dynamic>{
      'self': instance.self,
      'accountId': instance.accountId,
      'emailAddress': instance.emailAddress,
      'avatarUrls': instance.avatarUrls,
      'displayName': instance.displayName,
      'activate': instance.activate,
      'timeZone': instance.timeZone,
      'accountType': instance.accountType,
    };

DataJiraIssueDesc _$DataJiraIssueDescFromJson(Map<String, dynamic> json) =>
    DataJiraIssueDesc()
      ..version = (json['version'] as num?)?.toInt()
      ..doc = json['doc'] as String?
      ..content = (json['content'] as List<dynamic>?)
          ?.map((e) => DataJiraContent.fromJson(e as Map<String, dynamic>))
          .toList();

Map<String, dynamic> _$DataJiraIssueDescToJson(DataJiraIssueDesc instance) =>
    <String, dynamic>{
      'version': instance.version,
      'doc': instance.doc,
      'content': instance.content,
    };

DataJiraContent _$DataJiraContentFromJson(Map<String, dynamic> json) =>
    DataJiraContent()
      ..type = json['type'] as String?
      ..text = json['text'] as String?
      ..content = (json['content'] as List<dynamic>?)
          ?.map((e) => DataJiraContent.fromJson(e as Map<String, dynamic>))
          .toList();

Map<String, dynamic> _$DataJiraContentToJson(DataJiraContent instance) =>
    <String, dynamic>{
      'type': instance.type,
      'text': instance.text,
      'content': instance.content,
    };
