StatementObject.fromJson constructor
Implementation
factory StatementObject.fromJson(Map<String, dynamic> json) {
final type = json['objectType'] ?? 'Activity';
switch (type) {
case 'Agent':
case 'Group':
return Actor.fromJson(json);
case 'Activity':
return Activity.fromJson(json);
default:
return Activity.fromJson(json);
}
}