NodeConfigStatus.fromJson constructor

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

Creates a NodeConfigStatus from JSON data.

Implementation

NodeConfigStatus.fromJson(Map<String, dynamic> json)
    : this(
        active: json['active'] != null
            ? NodeConfigSource.fromJson(json['active'])
            : null,
        assigned: json['assigned'] != null
            ? NodeConfigSource.fromJson(json['assigned'])
            : null,
        error: json['error'],
        lastKnownGood: json['lastKnownGood'] != null
            ? NodeConfigSource.fromJson(json['lastKnownGood'])
            : null,
      );