32 lines
1.1 KiB
Dart
32 lines
1.1 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'practice.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
Practice _$PracticeFromJson(Map<String, dynamic> json) => Practice(
|
|
id: (json['id'] as num?)?.toInt(),
|
|
title: json['title'] as String?,
|
|
status: json['status'] as String?,
|
|
setType: json['set_type'] as String?,
|
|
persona: json['persona'] as String?,
|
|
ownerId: (json['owner_id'] as num?)?.toInt(),
|
|
ownerType: json['owner_type'] as String?,
|
|
description: json['description'] as String?,
|
|
shuffleQuestions: json['shuffle_questions'] as bool?,
|
|
);
|
|
|
|
Map<String, dynamic> _$PracticeToJson(Practice instance) => <String, dynamic>{
|
|
'id': instance.id,
|
|
'title': instance.title,
|
|
'status': instance.status,
|
|
'persona': instance.persona,
|
|
'description': instance.description,
|
|
'owner_id': instance.ownerId,
|
|
'set_type': instance.setType,
|
|
'owner_type': instance.ownerType,
|
|
'shuffle_questions': instance.shuffleQuestions,
|
|
};
|