문서 보기역링크PDF로 내보내기맨 위로 이 문서는 읽기 전용입니다. 원본을 볼 수는 있지만 바꿀 수는 없습니다. 문제가 있다고 생각하면 관리자에게 문의하세요. # mapper_util.dart {{tag>flutter dart json mapper util}} <code dart> import 'package:dart_json_mapper/dart_json_mapper.dart'; class MapperUtil { static List<T>? fromMapList<T>(data, type) { if (data == null || data[type] == null) return null; return data[type] .map((e) { return JsonMapper.deserialize<T>(e); }) .toList() .whereType<T>() .toList(); } static T? fromMap<T>(data, type) { if (data?[type] == null) return null; return JsonMapper.deserialize<T>(data[type]); } static toMap(obj) => JsonMapper.toMap(obj); } </code> open/mapper_util.dart.txt 마지막으로 수정됨: 2023/04/15 10:36저자 MORO