factory ResourceValue.fromJson(Map<String, dynamic> json) { return ResourceValue( value: (json['Value'] as String).toResourceValueType(), ); }