IPAddressSpec.fromJson constructor

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

Creates a IPAddressSpec from JSON data.

Implementation

factory IPAddressSpec.fromJson(Map<String, dynamic> json) {
  final tempParentRefJson = json['parentRef'];

  final ParentReference? tempParentRef = tempParentRefJson != null
      ? ParentReference.fromJson(tempParentRefJson)
      : null;

  return IPAddressSpec(
    parentRef: tempParentRef,
  );
}