parseRowJson static method

Map<String, Object?> parseRowJson(
  1. String source
)

Parse teks JSON hasil edit menjadi map baris.

Implementation

static Map<String, Object?> parseRowJson(String source) {
  final decoded = jsonDecode(source.trim());
  if (decoded is! Map) {
    throw const FormatException('JSON must be an object');
  }
  return _mapFromDynamic(decoded);
}