CreatePersistentResourceRequest.fromJson constructor

CreatePersistentResourceRequest.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory CreatePersistentResourceRequest.fromJson(Map<String, dynamic> json) {
  return CreatePersistentResourceRequest(
    parent: json['parent'] ?? '',
    persistentResource: decode(
      json['persistentResource'],
      PersistentResource.fromJson,
    ),
    persistentResourceId: json['persistentResourceId'] ?? '',
  );
}