complete method

Map<String, Object?>? complete()

Implementation

Map<String, Object?>? complete() {
  if (!isComplete) return null;
  try {
    final decoded = jsonDecode(_buffer.toString());
    return decoded is Map<String, Object?> ? decoded : null;
  } on FormatException {
    return null;
  }
}