Memory.fromJson constructor

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

Implementation

factory Memory.fromJson(Map<String, dynamic> json) {
  return Memory(
    free: json['free'] as int,
    used: json['used'] as int,
    allocated: json['allocated'] as int,
    reservable: json['reservable'] as int,
  );
}