// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'user_search_response.dart';

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

McUserSearchResult _$McUserSearchResultFromJson(Map<String, dynamic> json) =>
    McUserSearchResult(
      username: json['username'] as String,
      firstName: json['firstName'] as String,
      lastName: json['lastName'] as String,
      userType: json['userType'] as String,
      className: json['className'] as String?,
    );

Map<String, dynamic> _$McUserSearchResultToJson(McUserSearchResult instance) =>
    <String, dynamic>{
      'username': instance.username,
      'firstName': instance.firstName,
      'lastName': instance.lastName,
      'userType': instance.userType,
      'className': instance.className,
    };

UserSearchResponse _$UserSearchResponseFromJson(Map<String, dynamic> json) =>
    UserSearchResponse(
        result: (json['result'] as List<dynamic>)
            .map((e) => McUserSearchResult.fromJson(e as Map<String, dynamic>))
            .toList(),
      )
      ..headers = (json['headers'] as Map<String, dynamic>?)?.map(
        (k, e) => MapEntry(k, e as String),
      );

Map<String, dynamic> _$UserSearchResponseToJson(UserSearchResponse instance) =>
    <String, dynamic>{
      'headers': ?instance.headers,
      'result': instance.result.map((e) => e.toJson()).toList(),
    };
