formatJson static method

Map<String, dynamic> formatJson(
  1. Map? jsonSrc
)

Implementation

static Map<String, dynamic> formatJson(Map? jsonSrc) {
  if (jsonSrc != null) {
    return Map<String, dynamic>.from(jsonSrc);
  }
  return Map<String, dynamic>.from({});
}