factory MapStateStartedEventDetails.fromJson(Map<String, dynamic> json) { return MapStateStartedEventDetails( length: json['length'] as int?, ); }