toJson method
Serialises this DeviceIdentifier to a JSON Map.
Implementation
Map<String, dynamic> toJson() {
return {
'name': name,
'os': os,
'uuid': uuid,
'os_version': osVersion,
'app_version': appVersion,
'device_token': deviceToken,
'firebase_token': firebaseToken,
'active': active,
'id': id,
'last_login': lastLogin?.toIso8601String(),
'created': created?.toIso8601String(),
'updated': updated?.toIso8601String(),
'ip': ip,
};
}