TestHelpersTestClockCreateOptions.fromJson constructor
TestHelpersTestClockCreateOptions.fromJson(
- Object? json
Implementation
factory TestHelpersTestClockCreateOptions.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return TestHelpersTestClockCreateOptions(
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()),
name: map['name'] == null ? null : (map['name'] as String),
);
}