String toJson() => const JsonEncoder.withIndent(' ') .convert(map((data) => data.toJson()).toList());