NodeFrameworkAttributes.fromJson constructor

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

Implementation

factory NodeFrameworkAttributes.fromJson(Map<String, dynamic> json) {
  return NodeFrameworkAttributes(
    ethereum: json['Ethereum'] != null
        ? NodeEthereumAttributes.fromJson(
            json['Ethereum'] as Map<String, dynamic>)
        : null,
    fabric: json['Fabric'] != null
        ? NodeFabricAttributes.fromJson(
            json['Fabric'] as Map<String, dynamic>)
        : null,
  );
}