toJSONString method
Implementation
String toJSONString() => jsonEncode({
'address': address,
'email': email,
'id': id,
'loginToken': loginToken,
'loginType': loginType.toString().split('.').last,
'name': name,
'picture': picture,
'publicKey': publicKey,
});