fromJson static method Null safety

DebugLog fromJson(
  1. Map<String, dynamic> json,
  2. Model<ProgramOperation> model
)

Implementation

static DebugLog fromJson(Map<String, dynamic> json, Model model) {
  final initialState = json['initialState'] as Map<String, dynamic>;
  final keysD = json['keys'] as List<dynamic>;
  final keys = List.castFrom<dynamic, int>(keysD);
  return DebugLog._p(initialState, keys, model);
}