TestHelpersTestClockAdvanceOptions.fromJson constructor
TestHelpersTestClockAdvanceOptions.fromJson(
- Object? json
Implementation
factory TestHelpersTestClockAdvanceOptions.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return TestHelpersTestClockAdvanceOptions(
expand: map['expand'] == null
? null
: (map['expand'] as List<Object?>)
.map((el) => (el as String))
.toList(),
frozenTime: DateTime.fromMillisecondsSinceEpoch(
(map['frozen_time'] as int).toInt()),
);
}