// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'tool_result.dart';

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

ToolResult _$ToolResultFromJson(Map<String, dynamic> json) => ToolResult(
  eventId: json['eventId'] as String?,
  ok: json['ok'] as bool? ?? true,
  message: json['message'] as String?,
);

Map<String, dynamic> _$ToolResultToJson(ToolResult instance) =>
    <String, dynamic>{
      'eventId': instance.eventId,
      'ok': instance.ok,
      'message': instance.message,
    };

UiCard _$UiCardFromJson(Map<String, dynamic> json) => UiCard(
  cardType: json['type'] as String,
  schemaVersion: json['version'] as String? ?? _defaultSchemaVersion,
  data: json['data'] as Map<String, dynamic>,
  actions: (json['actions'] as List<dynamic>?)
      ?.map((e) => CardAction.fromJson(e as Map<String, dynamic>))
      .toList(),
);

Map<String, dynamic> _$UiCardToJson(UiCard instance) => <String, dynamic>{
  'type': instance.cardType,
  'version': instance.schemaVersion,
  'data': instance.data,
  'actions': instance.actions,
};

CardAction _$CardActionFromJson(Map<String, dynamic> json) => CardAction(
  type: json['type'] as String,
  label: json['label'] as String,
  target: json['target'] as String?,
  action: json['action'] as String?,
);

Map<String, dynamic> _$CardActionToJson(CardAction instance) =>
    <String, dynamic>{
      'type': instance.type,
      'label': instance.label,
      'target': instance.target,
      'action': instance.action,
    };

CalendarCardData _$CalendarCardDataFromJson(Map<String, dynamic> json) =>
    CalendarCardData(
      id: json['id'] as String,
      title: json['title'] as String,
      description: json['description'] as String?,
      startAt: json['startAt'] as String,
      endAt: json['endAt'] as String?,
      timezone: json['timezone'] as String?,
      location: json['location'] as String?,
      color: json['color'] as String?,
      sourceType: json['sourceType'] as String?,
    );

Map<String, dynamic> _$CalendarCardDataToJson(CalendarCardData instance) =>
    <String, dynamic>{
      'id': instance.id,
      'title': instance.title,
      'description': instance.description,
      'startAt': instance.startAt,
      'endAt': instance.endAt,
      'timezone': instance.timezone,
      'location': instance.location,
      'color': instance.color,
      'sourceType': instance.sourceType,
    };
