toObject<T> method

T? toObject<T>(
  1. T convert(
    1. Map<String, dynamic>? json
    )
)

Convert Object type of Map<String,dynamic> to Object has type of T using function convert

Implementation

T? toObject<T>(T Function(Map<String, dynamic>? json) convert) {
  if (this == null) return null;
  final Map<String, dynamic> inputMap = this!;
  return convert(inputMap);
}