fromJSON method
Restores this instance from the given JSON object.
Implementation
MemorySystem fromJSON(Map<String,dynamic> json ) {
owner = json['owner']; // uuid
memorySpan = json['memorySpan'];
final recordsJSON = json['records'];
for ( int i = 0, l = recordsJSON.length; i < l; i ++ ) {
final recordJSON = recordsJSON[ i ];
final record = MemoryRecord().fromJSON( recordJSON );
records.add( record );
}
return this;
}