convertToMap static method

Map<String, dynamic> convertToMap(
  1. Object? object
)

Implementation

static Map<String, dynamic> convertToMap(Object? object) {
  final response = <String, dynamic>{};

  final map = object as Map<Object?, Object?>;
  map.forEach((key, value) {
    response[key.toString()] = value;
  });
  return response;
}