UsageDataSourceResult.fromJson constructor

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

Implementation

factory UsageDataSourceResult.fromJson(Map<String, dynamic> json) {
  return UsageDataSourceResult(
    dataSource: (json['dataSource'] as String?)?.toDataSource(),
    total: json['total'] != null
        ? Total.fromJson(json['total'] as Map<String, dynamic>)
        : null,
  );
}