EventMemberLocation.fromJson constructor
EventMemberLocation.fromJson(
- Map<String, dynamic> json
)
Implementation
EventMemberLocation.fromJson(Map<String, dynamic> json)
: fromAtSign = json['fromAtSign'],
receiver = json['receiver'],
lat = json['lat'] != 'null' && json['lat'] != null
? double.parse(json['lat'])
: null,
long = json['long'] != 'null' && json['long'] != null
? double.parse(json['long'])
: null,
startSharingFrom = json['startSharingFrom'] != null
? DateTime.parse(json['startSharingFrom']).toLocal()
: null,
shareUntil = json['shareUntil'] != null
? DateTime.parse(json['shareUntil']).toLocal()
: null,
key = json['key'] ?? '';