StateAccounting.fromJson constructor

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

Implementation

factory StateAccounting.fromJson(Map<String, dynamic> json) {
  return StateAccounting(
    connected: AccountingDuration.fromJson(json['connected']),
    disconnected: AccountingDuration.fromJson(json['disconnected']),
    full: AccountingDuration.fromJson(json['full']),
    syncing: AccountingDuration.fromJson(json['syncing']),
    tracking: AccountingDuration.fromJson(json['tracking']),
  );
}