factory ResourceUri.fromJson(Map<String, dynamic> json) { return ResourceUri( resourceType: (json['ResourceType'] as String?)?.toResourceType(), uri: json['Uri'] as String?, ); }