All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dart-dio.api_util.mustache Maven / Gradle / Ivy

import 'dart:convert';

import 'package:built_value/serializer.dart';

/// Format the given parameter object into string.
String parameterToString(Serializers serializers, dynamic value) {
	if (value == null) {
		return '';
	} else if (value is String || value is num) {
		return value.toString();
	} else {
		return json.encode(serializers.serialize(value));
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy