NetworkInfo.fromMap constructor

NetworkInfo.fromMap(
  1. Map map
)

Construct class from the json map

Implementation

factory NetworkInfo.fromMap(Map map) => NetworkInfo(
      packageName: map['packageName'],
      rxTotalBytes: map['rxTotalBytes'],
      txTotalBytes: map['txTotalBytes'],
    );