mapFromJson static method

Map<String, Logs?> mapFromJson(
  1. dynamic json
)

Implementation

static Map<String, Logs?> mapFromJson(dynamic json) {
  final map = <String, Logs?>{};
  if (json is Map && json.isNotEmpty) {
    json
        .cast<String, dynamic>()
        .forEach((key, dynamic value) => map[key] = Logs.fromJson(value));
  }
  return map;
}