2020-02-02 07:08:58 +01:00
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
|
|
|
part of 'bitbucket.dart';
|
|
|
|
|
|
|
|
// **************************************************************************
|
|
|
|
// JsonSerializableGenerator
|
|
|
|
// **************************************************************************
|
|
|
|
|
|
|
|
BbUser _$BbUserFromJson(Map<String, dynamic> json) {
|
|
|
|
return BbUser()
|
|
|
|
..username = json['username'] as String
|
|
|
|
..displayName = json['display_name'] as String
|
|
|
|
..isStaff = json['is_staff'] as bool
|
|
|
|
..createdOn = json['created_on'] == null
|
|
|
|
? null
|
2020-02-02 07:24:22 +01:00
|
|
|
: DateTime.parse(json['created_on'] as String)
|
|
|
|
..links = json['links'] as Map<String, dynamic>;
|
2020-02-02 07:08:58 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
Map<String, dynamic> _$BbUserToJson(BbUser instance) => <String, dynamic>{
|
|
|
|
'username': instance.username,
|
|
|
|
'display_name': instance.displayName,
|
|
|
|
'is_staff': instance.isStaff,
|
|
|
|
'created_on': instance.createdOn?.toIso8601String(),
|
2020-02-02 07:24:22 +01:00
|
|
|
'links': instance.links,
|
2020-02-02 07:08:58 +01:00
|
|
|
};
|