DocumentationPartLocation.fromMap constructor
DocumentationPartLocation.fromMap(
- Map<String, dynamic> map
)
Implementation
factory DocumentationPartLocation.fromMap(Map<String, dynamic> map) {
return DocumentationPartLocation(
method: (() { final guardedValue = map['method']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
name: (() { final guardedValue = map['name']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
path: (() { final guardedValue = map['path']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
statusCode: (() { final guardedValue = map['statusCode']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
type: pulumi.Input.fromValue(map['type'] as String),
);
}