CustomerLastUsedMethod.fromJson constructor

CustomerLastUsedMethod.fromJson(
  1. dynamic data
)

Implementation

factory CustomerLastUsedMethod.fromJson(dynamic data) {
  final json = DynamicJsonExtension.getJsonMap(data);
  final rawType = json['type'];
  return CustomerLastUsedMethod(
    id: json['id'] as String?,
    method: json['method'] as String?,
    type: rawType is String
        ? LastUsedMethodTypeExtension.fromString(rawType)
        : null,
  );
}